package com.ruoyi.order.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.MesProductSkipStationMapper;
import com.ruoyi.order.domain.MesProductSkipStation;
import com.ruoyi.order.service.IMesProductSkipStationService;

/**
 * 异常跳站信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-27
 */
@Service
public class MesProductSkipStationServiceImpl implements IMesProductSkipStationService 
{
    @Autowired
    private MesProductSkipStationMapper mesProductSkipStationMapper;

    /**
     * 查询异常跳站信息
     * 
     * @param skipId 异常跳站信息主键
     * @return 异常跳站信息
     */
    @Override
    public MesProductSkipStation selectMesProductSkipStationBySkipId(Long skipId)
    {
        return mesProductSkipStationMapper.selectMesProductSkipStationBySkipId(skipId);
    }

    /**
     * 查询异常跳站信息列表
     * 
     * @param mesProductSkipStation 异常跳站信息
     * @return 异常跳站信息
     */
    @Override
    public List<MesProductSkipStation> selectMesProductSkipStationList(MesProductSkipStation mesProductSkipStation)
    {
        return mesProductSkipStationMapper.selectMesProductSkipStationList(mesProductSkipStation);
    }

    /**
     * 新增异常跳站信息
     * 
     * @param mesProductSkipStation 异常跳站信息
     * @return 结果
     */
    @Override
    public int insertMesProductSkipStation(MesProductSkipStation mesProductSkipStation)
    {
        mesProductSkipStation.setCreateTime(DateUtils.getNowDate());
        return mesProductSkipStationMapper.insertMesProductSkipStation(mesProductSkipStation);
    }

    /**
     * 修改异常跳站信息
     * 
     * @param mesProductSkipStation 异常跳站信息
     * @return 结果
     */
    @Override
    public int updateMesProductSkipStation(MesProductSkipStation mesProductSkipStation)
    {
        mesProductSkipStation.setUpdateTime(DateUtils.getNowDate());
        return mesProductSkipStationMapper.updateMesProductSkipStation(mesProductSkipStation);
    }

    /**
     * 批量删除异常跳站信息
     * 
     * @param skipIds 需要删除的异常跳站信息主键
     * @return 结果
     */
    @Override
    public int deleteMesProductSkipStationBySkipIds(Long[] skipIds)
    {
        return mesProductSkipStationMapper.deleteMesProductSkipStationBySkipIds(skipIds);
    }

    /**
     * 删除异常跳站信息信息
     * 
     * @param skipId 异常跳站信息主键
     * @return 结果
     */
    @Override
    public int deleteMesProductSkipStationBySkipId(Long skipId)
    {
        return mesProductSkipStationMapper.deleteMesProductSkipStationBySkipId(skipId);
    }
}
